Leadtools.Web.Services Requires Medical product license | Send comments on this topic. | Back to Introduction - All Topics | Help Version 16.5.09.25
ProcessStream Method
See Also 
Leadtools.Web.Services Namespace > Generic ServiceStreamer Class : ProcessStream Method



currentStreamNumber
The number of the current concurrent stream to process.
state
User state information.
currentStreamNumber
The number of the current concurrent stream to process.
state
User state information.
Whether the Generic ServiceStreamer should continue streaming by calling the OnCallService method.

Syntax

Visual Basic (Declaration) 
Protected Overridable MustOverride Function ProcessStream( _
   ByVal currentStreamNumber As Integer, _
   ByVal state As TServiceState _
) As Boolean
Visual Basic (Usage)Copy Code
Dim instance As ServiceStreamer(Of TStreamedData,TServiceState)
Dim currentStreamNumber As Integer
Dim state As TServiceState
Dim value As Boolean
 
value = instance.ProcessStream(currentStreamNumber, state)
C# 
protected virtual abstract bool ProcessStream( 
   int currentStreamNumber,
   TServiceState state
)
C++/CLI 
protected:
virtual abstract bool ProcessStream( 
   int currentStreamNumber,
   TServiceState state
) 

Parameters

currentStreamNumber
The number of the current concurrent stream to process.
state
User state information.

Return Value

true to continue streaming; otherwise false.

Remarks

This function will be called before calling the OnCallService method.

When you receive all the data from the web service and you don't need to perform further streaming return false from this method. For example if you set the StreamsLimit to 4 and you have received all data in the 3rd call then return false when the currentStreamNumber is 4.

Requirements

Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family

See Also

ProcessStream requires a Web Viewer Framework Module license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features